home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / SML40 / !Sml / Sml / compstuff / README < prev   
Text File  |  1990-12-05  |  3KB  |  96 lines

  1. How to compile SML on the Archimedes under RISC-OS C release 3
  2. ==============================================================
  3.  
  4. Background
  5. ----------
  6.  
  7. The first thing to note is that this is *tedious*, because of weird file
  8. layout conventions forced upon the C compiler by RISC_OS-es short
  9. filenames.  It is however not hard, there is no fundamental change
  10. required for the source - only the scripts for compiling it change.
  11.  
  12. Ideally, you will need implementations of the UNIX utilities
  13. sed, plus a port of GNU make for the Archimedes.
  14. Sed can be obtained from a variety of public domain libraries,
  15. GNU make (much better than ``amu'') can obtained (indirectly) from myself,
  16. or directly from the porter Paul Moore.
  17.  
  18.      (pmoore@cix.UUCP) or 
  19.      Archive     (pmoore@cix.UUCP) or 
  20.      Archive BBS (Paul Moore, account #552) or
  21.  
  22.         10, Mulberry Rise,
  23.         Firdale Park,
  24.         Northwich,
  25.         Cheshire
  26.         CW8 4UQ
  27.  
  28. The Makefile also expects a C program called ``uecho'' which just
  29. prints its command-line arguments.
  30.  
  31. If you cannot be bothered to get these don't despair - you can get by
  32. without.  The Makefile can be editted to work with amu and you can
  33. hand-edit files so as to do without sed unecho etc.  The hc directory
  34. contains ready editted files suitable for the version of the abstract
  35. machine interpreter current at the time of writing.  See the lines
  36. marked ARCHY in the Makefile for details of the modifications needed to
  37. use this ``cheating'' route.
  38.  
  39. You will probably need a 4M byte machine as otherwise you will have to
  40. turn off lots of compiler features to avoid it running out of memory.
  41.  
  42. How to do it
  43. ------------
  44.  
  45. 1.  Obtain the source files from the info-server@uk.ac.ed.lfcs
  46.     The archive you need is edml-fam.src
  47.  
  48.     If you cannot get access over JANET (or the Internet etc)
  49.     contact
  50.  
  51.     Laboratory for Foundations of Computer Science,
  52.     James Clerk Maxwell Building,
  53.     Kings Buildings,
  54.     University of Edinburgh,
  55.     EDINBURGH
  56.     Great Britain
  57.  
  58. 2.  Get the tar archive onto your Archy!
  59.  
  60. 3.  Extract the files file fam.src.tar using Frank Lancaster port of
  61.     GNU tar using U and E options to tell to read UNIX format tar files
  62.     and transform .'s to _'s
  63.  
  64.     Change directory into fam_src
  65.  
  66. 4.  EXEC the file buildfils (in this directory) to build the kind of
  67.     file structure Acorn's C expects.
  68.  
  69. 5.  Replace the original Makefile with the one in this directory.
  70.     supplied.
  71.  
  72. 6.  If you lack sed get it or hack the Makefile as described in
  73.     the Makefile.  Note: Archy sed's and Makefule are not exactly
  74.     ultra-robust.  Don't be surprised if you need to mess around with
  75.     the Makefile a little to get things working.
  76.  
  77.     If you lack GNU make you will need to edit the Makefile a little
  78.     persuade Acorn's dozy amu to accept it.
  79.  
  80. 7.  make fam to build the abstract machine interpreter fam
  81.  
  82.  
  83. Getting SML up and working on Archy
  84. -----------------------------------
  85.  
  86. Once ``fam'' has been compiled life is pretty easy.
  87. All you need now is to dump a saved state from the distributed
  88. system (the edml-CompilerAndLib archive from info-server@uk.ac.ed.lfcs),
  89. and hack up a few scripts to make sml go.
  90.  
  91. A workable set-up and instructions are provided in the
  92. README files provided with this archive.
  93.  
  94.  
  95.  
  96.